# $OpenBSD: Makefile.pear,v 1.3 2008/10/26 15:20:51 robert Exp $
# Default Makefile to install a PHP PEAR module

default:

install:
	cp ${WRKDIR}/package.xml ${.CURDIR}
	mkdir -p ${PREFIX}/lib/php
	${LOCALBASE}/bin/pear install -f -n -R ${WRKINST} -n ${.CURDIR}/package.xml

# These directories and files are not needed 
	@cd ${WRKINST}/var/www/pear && rm -rf cache lib/.channels lib/.channels/__uri.reg \
			lib/.depdb*  lib/.registry/.channel*
